﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GameClient
{
    public partial class PrivateMessage : Form
    {
        private string m_sMessage;

        public string Message
        {
            get
            {
                return m_sMessage;
            }
        }

        private string m_sFrom;

        public PrivateMessage(string From, string Message)
        {
            InitializeComponent();
            m_sMessage = Message;
            m_sFrom = From;

            textBox1.Text = Message;

            Text = "Private Message From : " + From;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox2.Text.Length == 0)
                MessageBox.Show("Please enter a response");
            else
                m_sMessage = textBox2.Text;
        }
    }
}
